package com.scm.entity;

public class Category
{
    private Integer categoryId;
    private String name;
    private String remark;

    public void setCategoryId(Integer categoryId)
    {
        this.categoryId = categoryId;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public void setRemark(String remark)
    {
        this.remark = remark;
    }

    public boolean equals(Object o)
    {
        if (o == this) {
            return true;
        }
        if (!(o instanceof Category)) {
            return false;
        }
        Category other = (Category)o;
        if (!other.canEqual(this)) {
            return false;
        }
        Object this$categoryId = getCategoryId();Object other$categoryId = other.getCategoryId();
        if (this$categoryId == null ? other$categoryId != null : !this$categoryId.equals(other$categoryId)) {
            return false;
        }
        Object this$name = getName();Object other$name = other.getName();
        if (this$name == null ? other$name != null : !this$name.equals(other$name)) {
            return false;
        }
        Object this$remark = getRemark();Object other$remark = other.getRemark();return this$remark == null ? other$remark == null : this$remark.equals(other$remark);
    }

    protected boolean canEqual(Object other)
    {
        return other instanceof Category;
    }

    public int hashCode()
    {
        int PRIME = 59;int result = 1;Object $categoryId = getCategoryId();result = result * 59 + ($categoryId == null ? 43 : $categoryId.hashCode());Object $name = getName();result = result * 59 + ($name == null ? 43 : $name.hashCode());Object $remark = getRemark();result = result * 59 + ($remark == null ? 43 : $remark.hashCode());return result;
    }

    public String toString()
    {
        return "Category(categoryId=" + getCategoryId() + ", name=" + getName() + ", remark=" + getRemark() + ")";
    }

    public Integer getCategoryId()
    {
        return this.categoryId;
    }

    public String getName()
    {
        return this.name;
    }

    public String getRemark()
    {
        return this.remark;
    }
}
